import { createApp } from "vue"
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
import "@/styles/index.scss"
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import App from "@/App.vue"
import router from "@/router"
import pinia from "@/store"
import "@/permission"

const app = createApp(App)

import components from "@/components"
app.use(components)

app.use(ElementPlus, {
    locale: zhCn,
})

app.use(router)
app.use(pinia)

// svg 插件
import "virtual:svg-icons-register"
app.mount("#app")
